var document = search.findNode("workspace://SpacesStore/"+args.nodeId);
var swfurlfinal;
try
{
	if(document.getMimetype().substr(0,5)=="image")
	{
		var swfurl = document.url;
	}
	else
	{
		var swfNode = document.getThumbnail("webpreview");
		if(swfNode == null)
			swfNode = document.createThumbnail("webpreview");
		var swfurl = swfNode.url;
	}
	swfurlfinal = swfurl.substr(5) + "/content";
}
catch(err)
{
	swfurlfinal = null;
}
if(swfurlfinal==null)
	model.swfurl = "false";
else
	model.swfurl = "true";